Skip to content

feat: add JSON output#147

Merged
stephantul merged 2 commits into
mainfrom
json-output
May 22, 2026
Merged

feat: add JSON output#147
stephantul merged 2 commits into
mainfrom
json-output

Conversation

@stephantul
Copy link
Copy Markdown
Contributor

This PR adds JSON output as the default output format. The actual output format is also a little bit different: we have a top-level "query" key and "results" key. This can be parsed by jq.

e.g.,

semble search "how do I save a model" | jq '.results[].chunk.file_path'

gives you a list of all file paths. Fixes #127

@stephantul stephantul requested a review from Pringled May 22, 2026 14:16
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/semble/cli.py 100.00% <100.00%> (ø)
src/semble/mcp.py 100.00% <100.00%> (ø)
src/semble/types.py 100.00% <100.00%> (ø)
src/semble/utils.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@Pringled Pringled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM two minor concerns, and do we want to support plain text output still via a flag or just drop it entirely?

Comment thread src/semble/mcp.py Outdated
Comment thread src/semble/cli.py Outdated
@stephantul stephantul merged commit 2cffcc9 into main May 22, 2026
16 checks passed
@stephantul stephantul deleted the json-output branch May 22, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

suggestion: add a flag for json output

2 participants